import { http } from "/@/utils/http/index";

const enum Api {
  Login = "/login"
}

export interface IUserParams {
  username: string;
  password: string;
}

/**
 * 用户登录
 */
export async function loginApi<T>(params: IUserParams) {
  return http.post<T>({ url: Api.Login, params });
}
